package com.cattsoft.i18n;

import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;

public class Test2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Locale locale = Locale.getDefault();

		ResourceBundle bundle = ResourceBundle.getBundle("helloworld", locale);

		String vl = bundle.getString("hello");

		System.out.println(vl);

		String formatedvl = MessageFormat.format(vl, new Object[]{" NBA "});
		
		System.out.println(formatedvl);
		
	}

}
